home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / misc / wt004wc / dos-keyb.h < prev    next >
Text File  |  1994-05-14  |  2KB  |  104 lines

  1. /*      KB.H
  2.  *
  3.  * Keyboard scan codes
  4.  *
  5.  * PUBLIC DOMAIN by Petteri Kangaslampi 1994
  6. */
  7.  
  8. /****************************************************************************\
  9. *       Keyboard hardware scan codes: (make codes)
  10. *       ------------------------------------------
  11. * Note! I have not even proofread these. They _should_ be correct, but if
  12. * something seems strange, don't trust them.
  13. \****************************************************************************/
  14.  
  15. enum kbScanCodes
  16. {
  17.     kbBackspace = 0x0E,
  18.     kbCapsLock = 0x3A,
  19.     kbEnter = 0x1C,
  20.     kbEsc = 0x01,
  21.     kbAlt = 0x38,
  22.     kbCtrl = 0x1D,
  23.     kbLeftShift = 0x2A,
  24.     kbNumLock = 0x45,
  25.     kbRightShift = 0x36,
  26.     kbScrollLock = 0x46,
  27.     kbSpace = 0x39,
  28.     kbSysReq = 0x54,
  29.     kbTab = 0x0F,
  30.     kbF1 = 0x3B,
  31.     kbF2 = 0x3C,
  32.     kbF3 = 0x3D,
  33.     kbF4 = 0x3E,
  34.     kbF5 = 0x3F,
  35.     kbF6 = 0x40,
  36.     kbF7 = 0x41,
  37.     kbF8 = 0x42,
  38.     kbF9 = 0x43,
  39.     kbF10 = 0x44,
  40.     kbF11 = 0x57,
  41.     kbF12 = 0x58,
  42.     kbIns = 0x52,
  43.     kbEnd = 0x4F,
  44.     kbDownArrow = 0x50,
  45.     kbPageDown = 0x51,
  46.     kbLeftArrow = 0x4B,
  47.     kbKeypad5 = 0x4C,
  48.     kbRightArrow = 0x4D,
  49.     kbHome = 0x47,
  50.     kbUpArrow = 0x48,
  51.     kbPageUp = 0x49,
  52.     kbDel = 0x53,
  53.     kbKeypadAsterix = 0x37,
  54.     kbKeypadMinus = 0x4A,
  55.     kbKeypadPlus = 0x4E,
  56.     kbA = 0x1E,
  57.     kbB = 0x30,
  58.     kbC = 0x2E,
  59.     kbD = 0x20,
  60.     kbE = 0x12,
  61.     kbF = 0x21,
  62.     kbG = 0x22,
  63.     kbH = 0x23,
  64.     kbI = 0x17,
  65.     kbJ = 0x24,
  66.     kbK = 0x25,
  67.     kbL = 0x26,
  68.     kbM = 0x32,
  69.     kbN = 0x31,
  70.     kbO = 0x18,
  71.     kbP = 0x19,
  72.     kbQ = 0x10,
  73.     kbR = 0x13,
  74.     kbS = 0x1F,
  75.     kbT = 0x14,
  76.     kbU = 0x16,
  77.     kbV = 0x2F,
  78.     kbW = 0x11,
  79.     kbX = 0x2D,
  80.     kbY = 0x15,
  81.     kbZ = 0x2C,
  82.     kb1 = 0x02,
  83.     kb2 = 0x03,
  84.     kb3 = 0x04,
  85.     kb4 = 0x05,
  86.     kb5 = 0x06,
  87.     kb6 = 0x07,
  88.     kb7 = 0x08,
  89.     kb8 = 0x09,
  90.     kb9 = 0x0A,
  91.     kb0 = 0x0B,
  92.     kbMinus = 0x0C,
  93.     kbEquals = 0x0D,
  94.     kbLeftBracket = 0x1A,
  95.     kbRightBracket = 0x1B,
  96.     kbSemicolon = 0x27,
  97.     kbApostrophe = 0x28,
  98.     kbGrave = 0x29,
  99.     kbBackslash = 0x2B,
  100.     kbComma = 0x33,
  101.     kbPeriod = 0x34,
  102.     kbSlash = 0x35
  103. };
  104.